<?php
/**
 * BoxBilling
 *
 * @copyright BoxBilling, Inc (http://www.boxbilling.com)
 * @license   Apache-2.0
 *
 * Copyright BoxBilling, Inc
 * This source file is subject to the Apache-2.0 License that is bundled
 * with this source code in the file LICENSE
 */

/**
 * Custom forms
 */

namespace Box\Mod\Formbuilder\Api;

class Guest extends \Api_Abstract
{
    /**
     * Get custom order form details for product
     * 
     * @param int $product_id - Product id
     * 
     * @return array
     * @throws Box_Exception 
     */
    public function get($data)
    {
        if(!isset($data['id'])) {
            throw new \Box_Exception('Form id was not passed');
        }
        $service = $this->getService();
        return $service->getForm($data['id']);
    }
}